package com.xinqi.modules.course.clazz.client;

import com.xinqi.common.base.constants.ServiceNameConstants;
import com.xinqi.common.base.response.R;
import com.xinqi.modules.course.clazz.dto.rsp.ClassGroupStudentResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 班级分组人员表客户端
 *
 * @author: system
 * @date: 2023/10/31
 */
@FeignClient(contextId = "classGroupStudentClient", value = ServiceNameConstants.XQ_COURSE)
public interface ClassGroupStudentClient {
    String INNER_PREFIX = "/inner/class-group-student";


    /**
     * 班级分组人员表-详情
     */
    @GetMapping(INNER_PREFIX + "/{id}")
    R<ClassGroupStudentResultDTO> findById(@PathVariable("id") Long id);

    @GetMapping(INNER_PREFIX + "/findStudentListByGroupIds")
    R<List<ClassGroupStudentResultDTO>> findStudentListByGroupIds(@RequestParam("groupList") List<Long> groupList);
}
